<p-dialog header="选择下架设备" [(visible)]="display" modal="modal" [width]="width"  [responsive]="true" (onHide)="onHide()">
    <div class="content-section  GridDemo clearfixes">
            <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
                    <div class="mysearch">
                        <div class="ui-g">
                            <div >
                            <label for="">设备编号：</label>
                            <input type="text" pInputText  [(ngModel)]="searchObj.sid"/>
                            </div>
                            <div >
                            <label for="">设备名称：</label>
                            <input type="text" pInputText  [(ngModel)]="searchObj.applicant"/>
                            </div>
                            <div >
                            <label for="">位置：</label>
                            <p-dropdown [options]="allStatus" [(ngModel)]="searchObj.status" [style]="{'width':'77%'}"></p-dropdown>
                            </div>
                            <div>
                                <button pButton type="button"  label="查询" (click)="searchSchedule()"></button>
                            </div>
                            <div>
                                <button pButton type="button"  label="清空" (click)="clearSearch()"></button>
                            </div>
                        </div>
                    </div>
                <p-dataTable [value]="scheduleDatas" [(selection)]="selectEquip" id="malfunctionTable"   [totalRecords]="totalRecords">
                  <p-column selectionMode="multiple" ></p-column>
                    <p-column field="sid" header="设备编号" [sortable]="true">
                    <ng-template let-data="rowData" pTemplate="operator">
                    <span (click)="onOperate(data)">{{data.sid}}</span>
                    </ng-template>
                    </p-column>
                    <p-column field="creator" header="设备名称" [sortable]="true"></p-column>
                    <p-column field="submitter" header="设备分类" [sortable]="true"></p-column>
                    <p-column field="occurrence_time" header="型号" [sortable]="true"></p-column>
                    <p-column field="type" header="在架/部署位置" [sortable]="true"></p-column>
                    <p-column field="title" header="状态" [sortable]="true"></p-column>
                    <p-column field="status" header="下架去向" [sortable]="true"></p-column>
                    <p-column field="color" header="操作项" [style]="{'width':'18vw'}">
                    <ng-template let-data="rowData" pTemplate="operator">
                    </ng-template>
                    </p-column>
                    <ng-template pTemplate="emptymessage">
                        当前没有数据
                    </ng-template>
                </p-dataTable>
                <p-paginator rows="10" [totalRecords]="totalRecords" [rowsPerPageOptions]="[10,20,30]" (onPageChange)="paginate($event)"></p-paginator>
            </div>
    </div>
    <p-footer>
        <button type="button" pButton icon="fa-check"  label="确定" (click)="formSubmit(false)" ></button>
        <button type="button" pButton icon="fa-close" (click)="closeBorrowItems(false)" label="取消"></button>
    </p-footer>
</p-dialog>




<!--<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>-->
